Skip to content

hot-fix: Bad error handling on python2 directories#253

Merged
fstagni merged 1 commit into
DIRACGrid:develfrom
Robin-Van-de-Merghel:robin-fix-python2-directories
Apr 1, 2025
Merged

hot-fix: Bad error handling on python2 directories#253
fstagni merged 1 commit into
DIRACGrid:develfrom
Robin-Van-de-Merghel:robin-fix-python2-directories

Conversation

@Robin-Van-de-Merghel

@Robin-Van-de-Merghel Robin-Van-de-Merghel commented Apr 1, 2025

Copy link
Copy Markdown

Bad error handling on python2 caused this error (in current devel and main branch):

2025-04-01T15:17:45.220594Z INFO [Pilot] Remote logger activated
Traceback (most recent call last):
  File "../Pilot//Pilot/dirac-pilot.py", line 83, in <module>
    log.buffer.flush()
  File "/Pilot/Pilot/pilotTools.py", line 590, in wrapper
    return func(self, *args, **kwargs)
  File "/Pilot/Pilot/pilotTools.py", line 675, in flush
    self.senderFunc(buf)
  File "/Pilot/Pilot/pilotTools.py", line 710, in sendMessage
    context.load_cert_chain(cert)  # this is a proxy
IOError: [Errno 21] Is a directory

I think before we could use OSError, but not anymore. We need IOError cf error.

Env info: python2.7.15

@fstagni fstagni merged commit 98cee00 into DIRACGrid:devel Apr 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants